﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowAlbum.aspx.cs" Inherits="ShowAlbum" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" RepeatColumns="3" RepeatDirection="Horizontal">
            <ItemTemplate>
                <table>
                   <tr>
                      <td>
                         <asp:Image ID="Image1" runat="server" ImageUrl='<% #Eval("_CoverPhotoUrl") %>' Height="200px" Width="200px" />
                      </td>
                   </tr>
                   <tr>
                      <td>
                         相册名称：
                      </td>
                      <td>
                          <asp:Label ID="Label1" runat="server" Text='<% #Eval("_Name") %>'></asp:Label>
                      </td>
                   </tr>
                   <tr>
                      <td>
                         相册简介：
                      </td>
                      <td>
                         <asp:Label ID="Label2" runat="server" Text='<% #Eval("_Info") %>'></asp:Label>
                      </td>
                   </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllAlbumByUser" TypeName="Album_Photo">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="0" Name="UserId" SessionField="USER_ID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
